//
//  BorrowXieYiVCV.m
//  BrushFace
//
//  Created by timer_q on 16/1/7.
//  Copyright © 2016年 Zzz. All rights reserved.
//

#import "BorrowXieYiVCV.h"
 #import "IQKeyboardManager.h"
@interface BorrowXieYiVCV ()<UITextViewDelegate>{

    BOOL _wasKeyboardManagerEnabled;
}
@property (weak, nonatomic) IBOutlet UITextView *textview;

@end

@implementation BorrowXieYiVCV

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self.navBar setTitle:@"借款协议"];
    [self.navBar setLeftBtn:NAV_BAR_LEFT_BTN_TYPE_BLUE];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(BOOL)textViewShouldBeginEditing:(UITextView *)textView{
    return NO;

}
-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    _textview.editable = NO;
    _textview.delegate = self;
    _wasKeyboardManagerEnabled = [[IQKeyboardManager sharedManager] isEnabled];
    [[IQKeyboardManager sharedManager] setEnable:NO];
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [[IQKeyboardManager sharedManager] setEnable:_wasKeyboardManagerEnabled];  }  @end

